a = (0,)


# print(a[0])
def find1(a):
    if a:
        min1 = max1 = a[0]
        for i in a:
            # print(i)
            if i > max1:
                max1 = i

            if i < min1:
                min1 = i
        print((max1, min1))
    else:
        print((None, None))


find1(a)
